﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Joz58
{
    public class SolutionSubstring
    {
        public string ReverseLeftWords(string s, int n)
        {
            var start = s.Substring(0, n);
            var end = s.Substring(n);
            return $"{end}{start}";
        }
    }

    public class SolutionQueue
    {
        public string ReverseLeftWords(string s, int n)
        {
            Queue<char> q = new Queue<char>(s);

            while (n > 0)
            {
                char qt = q.Dequeue();
                q.Enqueue(qt);
                n--;
            }

            return string.Join("", q);
        }
    }
}
